using PlayMyLife.ViewCommon;
using PlayMyLife.Events;
using PlayMyLife.ViewModel;
using UnityEngine;
using UnityEngine.UI;

namespace PlayMyLife.View.Prefabs {
    public class StartPanel : FormBase {
        [SerializeField] private Dropdown ddLanguage;

        protected override void OnOpen() {

        }

        protected override void OnClose() {

        }

        public void OnClickStart() {
            GameViewManager.EventMgr.NotifyAsync(new EventArgs_ClosePanel(PanelType.StartPanel));
            GameViewManager.EventMgr.NotifyAsync(new EventArgs_ShowPanel(PanelType.PreparationPanel, PanelLayer.FullScreen));

        }

        public void OnClickSettings() {

        }

        public void OnClickExitGame() {
            Application.Quit();
#if UNITY_EDITOR
            UnityEditor.EditorApplication.ExitPlaymode();
#endif
        }
    }
}
